' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%      N a m e :   R o b o t A n n o S t e p A r m _ V 0 0 . t x t             D a t e :   0 1   J u l   2 0 2 2   Q%
 
 ' Q%  A u t h o r :   L e o n a r d o                                                                                 Q%
 
 ' Q%    S c o p e :   T e s t   t h e   o v e r a l l   f u n c t i o n a l i t y                                     Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%H a r d w a r e :   R o b o t A n n o   m o d e l :                                                               Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%  N o t e :   F i r s t   d a y                                                           2 8   J u n   2 0 2 2   Q%
 
 ' Q%                                                                                                                  Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 O p t i o n   S p e e d   9 
 
 B e e p   " 2 5 0 0   1 0 0 ,   1 5 0 0   1 0 0 " 
 
 
 
 ' V a r i a b l e   N u m e r i c   D e b u g   =   0   '   1   =   D E B U G       0   =   N O R M A L 
 
 
 
 R e s t o r e V a r s 
 
 
 
 ' L o a d   i m a g e s \ P a l l e t A r m B l a c k . j p g 
 
 ' B e e p   " 2 5 0 0   2 0 0 ,   1 5 0 0   2 0 0 ,   2 5 0 0   3 0 0 ,   0 5 0 0 ,   1 5 0 0   3 0 0 " 
 
 ' T T S   S e l e c t V o i c e   L a n g u a g e 
 
 T T S   S e t V o l u m e   1 0 0         ' 0   =   m u t e 
 
 T T S   S e t S p e e d   - 1 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   T E X T   f o r   C O M M A N D S   a n d   R E S P O N S E S           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o C o b o t         =   5 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ R e s p o n s e s F r o m C o b o t   =   5 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s F r o m C o b o t     =   5 3 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %%%%%
 
 '   Q%  V A R I A B L E   I N I T I A L I Z A T I O N S   &   A S S I G N E M E N T S     Q%  %      %  %%%%  %%%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%    %    %  %    %%
 
 ' V a r i a b l e   N u m e r i c   N u m C y c l e 
 
 ' V a r i a b l e   N u m e r i c   S t a r t T i m e 
 
 ' V a r i a b l e   S t r i n g     R e s u l t 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ E m e r g e n c y 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 1     =   1 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 2     =   2 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 3     =   3 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 4     =   4 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 5     =   5 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 6     =   6 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 7     =   7 0 1 
 
 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ E n a b l e M o t o r s   =     1 1 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ A n a l o g B u t   =       1 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d R 	 	 =     1 9 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d G 	 	 =     2 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d B 	 	 =     2 1 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n a l S c o p e               =     1 3 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S o f t w a r e   l i m i t s 
 
 V a r i a b l e   N u m e r i c   M 1 m a x   =           0 
 
 V a r i a b l e   N u m e r i c   M 1 m i n   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 2 m a x   =           0 
 
 V a r i a b l e   N u m e r i c   M 2 m i n   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 3 m a x   =           0 
 
 V a r i a b l e   N u m e r i c   M 3 m i n   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 4 m a x   =           0 
 
 V a r i a b l e   N u m e r i c   M 4 m i n   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 5 m a x   =           0 
 
 V a r i a b l e   N u m e r i c   M 5 m i n   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 6 m a x   =           0 
 
 V a r i a b l e   N u m e r i c   M 6 m i n   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 7 m a x   =         1 0 
 
 V a r i a b l e   N u m e r i c   M 7 m i n   =       1 7 0 
 
 
 
 
 
 K e y   1   B t n C o o r d _ M 1 
 
 K e y   2   B t n C o o r d _ M 2 
 
 K e y   3   B t n C o o r d _ M 3 
 
 K e y   4   B t n C o o r d _ M 4 
 
 K e y   5   B t n C o o r d _ M 5 
 
 K e y   6   B t n C o o r d _ M 6 
 
 K e y   7   B t n C o o r d _ M 7 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%%%
 
 '   Q%  B U T T O N S                                                                     Q%  %%%%  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%      %
 
 B u t t o n   1   T e x t   H a r d H o m e 
 
 B u t t o n   H a r d H o m e   C o l o r   C o r a l 
 
 
 
 B u t t o n   2   T e x t   " B t n C o o r d _ M 1 " 
 
 B u t t o n   B t n C o o r d _ M 1   T e x t   " M 1   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 1   C o l o r   L i g h t B l u e 
 
 B u t t o n   3   T e x t   " B t n C o o r d _ M 2 " 
 
 B u t t o n   B t n C o o r d _ M 2   T e x t   " M 2   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 2   C o l o r   L i g h t B l u e 
 
 B u t t o n   4   T e x t   " B t n C o o r d _ M 3 " 
 
 B u t t o n   B t n C o o r d _ M 3   T e x t   " M 3   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 3   C o l o r   L i g h t B l u e 
 
 B u t t o n   5   T e x t   " B t n C o o r d _ M 4 " 
 
 B u t t o n   B t n C o o r d _ M 4   T e x t   " M 4   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 4   C o l o r   L i g h t B l u e 
 
 B u t t o n   6   T e x t   " B t n C o o r d _ M 5 " 
 
 B u t t o n   B t n C o o r d _ M 5   T e x t   " M 5   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 5   C o l o r   L i g h t B l u e 
 
 B u t t o n   7   T e x t   " B t n C o o r d _ M 6 " 
 
 B u t t o n   B t n C o o r d _ M 6   T e x t   " M 6   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 6   C o l o r   L i g h t B l u e 
 
 B u t t o n   8   T e x t   " B t n C o o r d _ M 7 " 
 
 B u t t o n   B t n C o o r d _ M 7   T e x t   " M 7 =   ? " 
 
 B u t t o n   B t n C o o r d _ M 7   C o l o r   L i g h t B l u e 
 
 
 
 B u t t o n   1 7   T e x t   Y E L L O W 
 
 B u t t o n   Y e l l o w   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   1 8   T e x t   B L U E 
 
 B u t t o n   B l u e   C o l o r   B l u e 
 
 
 
 B u t t o n   1 9   T e x t   R E D 
 
 B u t t o n   R e d   C o l o r   R e d 
 
 
 
 B u t t o n   2 0   T e x t   G R E E N 
 
 B u t t o n   G r e e n   C o l o r   G r e e n 
 
 
 
 B u t t o n   2 1   T e x t   W H I T E 
 
 B u t t o n   W h i t e   C o l o r   W h i t e 
 
 
 
 B u t t o n   2 2   T e x t   B L A C K 
 
 B u t t o n   B l a c k   C o l o r   B l a c k 
 
 
 
 B u t t o n   2 3   T e x t   S a f e P o s 
 
 B u t t o n   S a f e P o s   T e x t   " 9 0   9 0   9 0 " 
 
 B u t t o n   S a f e P o s   C o l o r   B i s q u e 
 
 
 
 B u t t o n   2 4   T e x t   C o l o r B u t t o n 
 
 B u t t o n   C o l o r B u t t o n     T e x t   " C O L O R   B U T T O N " 
 
 B u t t o n   C o l o r B u t t o n     C o l o r   P l u m 
 
 
 
 B u t t o n   2 5   T e x t   E x e c C o b o t 
 
 B u t t o n   E x e c C o b o t     T e x t   " E x e c   C o b o t " 
 
 B u t t o n   E x e c C o b o t     C o l o r   C y a n 
 
 
 
 B u t t o n   2 7   T e x t   M o t o r T e s t 
 
 B u t t o n   M o t o r T e s t     T e x t   " M o t o r T e s t " 
 
 B u t t o n   M o t o r T e s t     C o l o r   O r a n g e 
 
 
 
 B u t t o n   1 6   T e x t   C l o s e A l l 
 
 B u t t o n   C l o s e A l l   T e x t   " C L O S E   A L L " 
 
 B u t t o n   C l o s e A l l   C o l o r   R e d 
 
 ' 
 
 ' B u t t o n   1 7   T e x t   R e p T e s t 
 
 ' B u t t o n   R e p T e s t   T e x t   "   " R E P E T . T E S T " " 
 
 ' B u t t o n   R e p T e s t   C o l o r   K h a k i 
 
 
 
 ' B u t t o n   1 6   T e x t   E m e r g e n c y 
 
 ' B u t t o n   E m e r g e n c y   T e x t   " E M E R G E N C Y " 
 
 ' B u t t o n   E m e r g e n c y   C o l o r   R e d 
 
 ' B u t t o n   E m e r g e n c y   S l o t     S l o t _ E m e r g e n c y 
 
 
 
 ' B u t t o n   1 7   T e x t   R e d O n 
 
 ' B u t t o n   R e d O n   C o l o r   R e d 
 
 ' B u t t o n   1 8   T e x t   G r e e n O n 
 
 ' B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 ' B u t t o n   1 9   T e x t   Y e l l o w O n 
 
 ' B u t t o n   Y e l l o w O n   C o l o r   Y e l l o w 
 
 ' B u t t o n   2 0   T e x t   B l u e O n 
 
 ' B u t t o n   B l u e O n   C o l o r   M e d i u m B l u e 
 
 ' B u t t o n   2 1   T e x t   W h i t e O n 
 
 ' B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 ' B u t t o n   2 2   T e x t   R g b O f f 
 
 ' B u t t o n   R g b O f f   C o l o r   B l a c k 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   K E Y S 
 
 K e y   R i g h t 	 	 G o s u b   E x e c K e y s 
 
 K e y   L e f t   	 	 G o s u b   E x e c K e y s 
 
 K e y   U p   	 	 	 G o s u b   E x e c K e y s 
 
 K e y   D o w n   	 	 G o s u b   E x e c K e y s 
 
 K e y   P a g e u p 	 	 G o s u b   E x e c K e y s 
 
 K e y   P a g e d o w n 	 G o s u b   E x e c K e y s 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O A D   A P P S                                                                 Q%  %      %    %  %%%%  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %    %  %%%%
 
 L o a d   T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ S t r i n g s . e x e 
 
 L o a d   T h e r e m i n o _ C o b o t . e x e 
 
 ' L o a d   T h e r e m i n o _ S i g n a l S c o p e . e x e 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%%  %%%%%  %%%%%  %%%%%
 
 '   Q%    S T A R T   F R O M   H E R E                                                   Q%    %%%%      %      %%%%%  %%%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%      %      %      %  %    %%      %
 
 ' E n a b l e M o t o r s 
 
 C o n t r o l s   O p e n T e x t B o x 
 
 D i s a b l e A l l B u t t o n s 
 
 C o n t r o l s   C l e a r T e x t B o x 
 
 G r e e n O n 
 
 P r i n t   T T S v o i c e s 
 
 E n a b l e A l l B u t t o n s 
 
 ' H a r d H o m e 
 
 L o a d   H i d e 
 
 ' L o o p 
 
 S t o p 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O O P                                                                           Q%  %      %    %  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %%%%  %
 
 L a b e l   L o o p 
 
 	 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 '   0 . 0 2   s e c .   o r   m o r e   t o   a l l o w   t i m e   f o r   k e y s   a n d   o t h e r   t a s k s 
 
 	 W a i t   S e c o n d s   0 . 0 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 G o t o   L o o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                       Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   1 6 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   1 6 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S A V E   L O A D   V A R S                                                       Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   S a v e V a r s 
 
 	 S a v e   V a r s 
 
 	 P r i n t   C R L F   +   " S A V E D   S E Q U E N C E N A M E   =   "   +   s 1   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   R e s t o r e V a r s 
 
 	 L o a d   V a r s 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%  %      %%%%  %%%%  %%%%
 
 '   Q%  C L O S E   A L L                                                                 Q%  %      %      %    %  %%%%  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%  %%%%  %%%%
 
 L a b e l   C l o s e A l l 
 
 	 R e d O n 
 
 	 S a v e V a r s 
 
 	 S t o p C o b o t 
 
 	 W i n d o w   S i z a b l e 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 T T S   S p e a k   " E n d   O f   P r o g r a m . " 
 
 	 S a f e P o s 
 
 	 L o a d   C l o s e A p p s 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%%  %%%%  %%%%
 
 '   Q%  S T O P   E V E N T   ( w h e n   p r e s s i n g   s t o p   b u t t o n )           Q%  %%%%      %      %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%      %      %%%%  %
 
 L a b e l   E v e n t S t o p 
 
 	 S a v e V a r s 
 
 	 R e d O n 
 
 	 S t o p C o b o t 
 
 	 E n a b l e A l l B u t t o n s 
 
 	 W i n d o w   S i z a b l e 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 T T S   S p e a k   " E n d   O f   P r o g r a m . " 
 
 	 S a f e P o s 
 
 E n d 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %    %  %%%%  %%%%  %%%%    %    %  %%%%  %%  %%  %%%%
 
 '   Q%  H A R D   H O M E   A L L   3   S T E P P E R S                                   Q%  %%%%  %%%%  %%%%  %    %    %%%%  %    %  %  %  %  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %    %  %    %  %  %%  %%%%    %    %  %%%%  %      %  %%%%
 
 L a b e l   H a r d H o m e 
 
 	 H o m e M 1 
 
 	 H o m e M 2 
 
 	 H o m e M 3 
 
 	 H o m e M 4 
 
 	 H o m e M 5 
 
 	 H o m e M 6 
 
 	 H o m e M 7 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '       W a i t   u n t i l   t h e   r o t a t i o n   m o t o r   i s   s t o p p e d 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   H o m e M 1 
 
 	 S l o t ( S l o t _ M 1 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M 1 )   =   9 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 	 S l o t ( S l o t _ M 1 )   =   9 0 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e M 2 
 
 	 S l o t ( S l o t _ M 2 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M 2 )   =   9 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 	 S l o t ( S l o t _ M 2 )   =   9 0 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e M 3 
 
 	 S l o t ( S l o t _ M 3 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M 3 )   =   9 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 	 S l o t ( S l o t _ M 3 )   =   9 0 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e M 4 
 
 	 S l o t ( S l o t _ M 4 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M 4 )   =   9 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 	 S l o t ( S l o t _ M 4 )   =   9 0 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e M 5 
 
 	 S l o t ( S l o t _ M 5 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M 5 )   =   9 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 	 S l o t ( S l o t _ M 5 )   =   9 0 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e M 6 
 
 	 S l o t ( S l o t _ M 6 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M 6 )   =   9 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 	 S l o t ( S l o t _ M 6 )   =   9 0 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e M 7 
 
 	 S l o t ( S l o t _ M 7 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M 7 )   =   5 0 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 	 S l o t ( S l o t _ M 7 )   =   5 0 0 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %  %%%%%
 
 '   Q%  W A I T   A L L   M O T O R   u n t i l   s t o p p e d                           Q%  %      %  %%%%  %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%%  %    %  %      %
 
 L a b e l   W a i t A l l M o t o r s 
 
 	 V a r i a b l e   N u m e r i c   W A M 1 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 F o r   W A M 1   =   1   T o   I n f i n i t y 
 
 	 	 I f   A b s ( S l o t ( S l o t _ M 1   +   1 ) )   <   0 . 0 1 
 
 	 	 	 I f   A b s ( S l o t ( S l o t _ M 2   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 I f   A b s ( S l o t ( S l o t _ M 3   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 	 I f   A b s ( S l o t ( S l o t _ M 4   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 	 	 I f   A b s ( S l o t ( S l o t _ M 5   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 	 	 	 I f   A b s ( S l o t ( S l o t _ M 6   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 	 	 	 	 E x i t 
 
 	 	 	 	 	 	 	 E n d I f 
 
 	 	 	 	 	 	 E n d I f 
 
 	 	 	 	 	 E n d I f 
 
 	 	 	 	 E n d I f 
 
 	 	 	 E n d I f 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 U p d a t e B u t t o n s 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E M E R G E N C Y                                                                 Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E m e r g e n c y 
 
 ' 	 D i s a b l e A l l B u t t o n s 
 
 ' 	 B u t t o n   1 5   E n a b l e d 
 
 ' 	 B u t t o n   1 5   C o l o r   F l a s h i n g 7   Y e l l o w   R e d 
 
 ' 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 ' 	 	 R e d O n 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 R g b O f f 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 L o a d   s o u n d \ A l a r m 1 0 b . w a v 
 
 ' 	 N e x t 
 
 S t o p 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%  %%%%
 
 '   Q%  L E D   C O L O R S                                                               Q%  %      %%    %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%
 
 L a b e l   R e d O n 
 
 	 T T S   S p e a k   " S t a t u s   r e d . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   M a g e n t a O n 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   Y e l l o w O n 
 
 	 T T S   S p e a k   " S t a t u s   y e l l o w . " 
 
 	 S l o t   S l o t _ L e d R   =   9 0 0 
 
 	 S l o t   S l o t _ L e d G   =   4 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   G r e e n O n 
 
 	 T T S   S p e a k   " S t a t u s   g r e e n . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   B l u e O n 
 
 	 T T S   S p e a k   " S t a t u s   b l u e . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   W h i t e O n 
 
 	 T T S   S p e a k   " S t a t u s   w h i t e . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   R g b O f f 
 
 	 T T S   S p e a k   " S t a t u s   b l a c k . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   R e d B l i n k 
 
 	 R e d O n 
 
 	 W h i t e O n 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %          %%%%  %    %  %%%%%
 
 '   Q%    C O L O R   B U T T O N                                                         Q%  %        %    %  %          %%%%  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%    %%%%  %%%%      %
 
 L a b e l   C o l o r B u t t o n 
 
 	 B u t t o n   C o l o r B u t t o n   C o l o r   F l a s h i n g 7   B l a c k   W h i t e 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 I f   I n t ( S l o t ( S l o t _ A n a l o g B u t ) )   =   0   A n d   S l o t ( S l o t _ A n a l o g B u t )   <   2 
 
 	 	 	 Y E L L O W 
 
 	 	 E n d I f 
 
 	 	 
 
 	 	 I f   I n t ( S l o t ( S l o t _ A n a l o g B u t ) )   >   4 3   A n d   S l o t ( S l o t _ A n a l o g B u t )   <   4 9 
 
 	 	 	 B L U E 
 
 	 	 E n d I f 
 
 	 	 
 
 	 	 I f   I n t ( S l o t ( S l o t _ A n a l o g B u t ) )   >   2 4 4   A n d   S l o t ( S l o t _ A n a l o g B u t )   <   2 5 0 
 
 	 	 	 R E D 
 
 	 	 E n d I f 
 
 	 	 
 
 	 	 I f   S l o t ( S l o t _ A n a l o g B u t )   >   1 2 8   A n d   S l o t ( S l o t _ A n a l o g B u t )   <   1 3 4 
 
 	 	 	 G R E E N 
 
 	 	 E n d I f 
 
 	 	 
 
 	 	 I f   I n t ( S l o t ( S l o t _ A n a l o g B u t ) )   >   5 2 1   A n d   S l o t ( S l o t _ A n a l o g B u t )   <   5 2 7 
 
 	 	 	 W H I T E 
 
 	 	 E n d I f 
 
 	 	 
 
 	 	 W a i t   S e c o n d s   0 . 0 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%    %%%%  %%%%  %
 
 '   Q%    A R M   C O L O R   P O S I T I O N                                             Q%  %%%%  %%%%  %  %  %    %        %    %  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %    %  %  %%  %      %    %%%%  %%%%  %%%%
 
 L a b e l   M o t o r T e s t 
 
 	 V a r i a b l e   N u m e r i c   M O 1 
 
 	 F o r   M O 1   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( S l o t _ M 1 )   =     0 
 
 	 	 S l o t ( S l o t _ M 2 )   =     0 
 
 	 	 S l o t ( S l o t _ M 3 )   =     0 
 
 	 	 S l o t ( S l o t _ M 4 )   =     0 
 
 	 	 S l o t ( S l o t _ M 5 )   =   4 5 
 
 	 	 S l o t ( S l o t _ M 6 )   =   0 
 
 	 	 S l o t ( S l o t _ M 7 )   =   1 0 0 
 
 	 	 W a i t A l l M o t o r s 
 
 	 	 S l o t ( S l o t _ M 6 )   =   1 8 0 
 
 	 	 W a i t A l l M o t o r s 
 
 	 	 S l o t ( S l o t _ M 6 )   =   0 
 
 	 	 W a i t A l l M o t o r s 
 
 ' 	 	 W a i t   S e c o n d s   0 . 5 
 
 	 	 S l o t ( S l o t _ M 1 )   =     9 0 
 
 	 	 S l o t ( S l o t _ M 2 )   =     9 0 
 
 	 	 S l o t ( S l o t _ M 3 )   =   1 8 0 
 
 	 	 S l o t ( S l o t _ M 4 )   =   1 8 0 
 
 	 	 S l o t ( S l o t _ M 5 )   =   1 3 5 
 
 	 	 S l o t ( S l o t _ M 6 )   =   1 8 0 
 
 	 	 S l o t ( S l o t _ M 7 )   =   9 0 0 
 
 	 	 W a i t A l l M o t o r s 
 
 	 	 W a i t   S e c o n d s   0 . 5 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   Y E L L O W 
 
 	 T T S   S p e a k   " G o i n g   t o   y e l l o w   d e a r   K e m i a o . " 
 
 	 S a f e P o s 
 
 	 S l o t ( S l o t _ M 1 )   =   6 6 
 
 	 S l o t ( S l o t _ M 2 )   =   6 7 . 3 5 
 
 	 S l o t ( S l o t _ M 3 )   =   7 2 . 5 0 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   B L U E 
 
 	 T T S   S p e a k   " G o i n g   t o   b l u e . " 
 
 	 S a f e P o s 
 
 	 S l o t ( S l o t _ M 1 )   =   8 4 
 
 	 S l o t ( S l o t _ M 2 )   =   6 9 . 4 9 
 
 	 S l o t ( S l o t _ M 3 )   =   6 8 . 7 5 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   R E D 
 
 	 T T S   S p e a k   " G o i n g   t o   r e d . " 
 
 	 S a f e P o s 
 
 	 S l o t ( S l o t _ M 1 )   =   9 3 
 
 	 S l o t ( S l o t _ M 2 )   =   6 9 
 
 	 S l o t ( S l o t _ M 3 )   =   6 2 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   G R E E N 
 
 	 T T S   S p e a k   " G o i n g   t o   g r e e n . " 
 
 	 S a f e P o s 
 
 	 S l o t ( S l o t _ M 1 )   =   6 9 
 
 	 S l o t ( S l o t _ M 2 )   =   7 0 . 2 0 
 
 	 S l o t ( S l o t _ M 3 )   =   6 4 . 2 7 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   B L A C K 
 
 	 T T S   S p e a k   " G o i n g   t o   b l a c k . " 
 
 	 S a f e P o s 
 
 	 S l o t ( S l o t _ M 1 )   =   1 2 2 
 
 	 S l o t ( S l o t _ M 2 )   =   7 0 
 
 	 S l o t ( S l o t _ M 3 )   =   6 8 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   W H I T E 
 
 	 T T S   S p e a k   " G o i n g   t o   w h i t e . " 
 
 	 S a f e P o s 
 
 	 S l o t ( S l o t _ M 1 )   =   1 0 4 
 
 	 S l o t ( S l o t _ M 2 )   =   6 9 . 4 9 
 
 	 S l o t ( S l o t _ M 3 )   =   6 8 . 7 5 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   S a f e P o s 
 
 	 S l o t ( S l o t _ M 1 )   =     9 0 
 
 	 S l o t ( S l o t _ M 2 )   =     9 0 
 
 	 S l o t ( S l o t _ M 3 )   =     9 0 
 
 	 S l o t ( S l o t _ M 4 )   =     9 0 
 
 	 S l o t ( S l o t _ M 5 )   =     9 0 
 
 	 S l o t ( S l o t _ M 6 )   =     9 0 
 
 	 S l o t ( S l o t _ M 7 )   =   1 7 0 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   R e p T e s t 
 
 	 F o r   v 9 9   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( S l o t _ M 1 )   =   7 0 
 
 	 	 S l o t ( S l o t _ M 2 )   =   9 0 
 
 	 	 S l o t ( S l o t _ M 3 )   =   9 0 
 
 	 	 W a i t A l l M o t o r s 
 
 	 	 
 
 	 	 S l o t ( S l o t _ M 1 )   =   1 1 0 
 
 	 	 S l o t ( S l o t _ M 2 )   =   9 0 
 
 	 	 S l o t ( S l o t _ M 3 )   =   9 0 
 
 	 	 W a i t A l l M o t o r s 
 
 	 	 
 
 	 	 S l o t ( S l o t _ M 1 )   =   9 0 
 
 	 	 S l o t ( S l o t _ M 2 )   =   7 6 
 
 	 	 S l o t ( S l o t _ M 3 )   =   8 2 
 
 	 	 W a i t A l l M o t o r s 
 
 	 	 
 
 	 	 W a i t   S e c o n d s   0 . 2 
 
 	 	 S l o t ( S l o t _ M 1 )   =   9 0 
 
 	 	 S l o t ( S l o t _ M 2 )   =   7 6 
 
 	 	 S l o t ( S l o t _ M 3 )   =   7 6 
 
 	 	 W a i t A l l M o t o r s 
 
 	 	 
 
 	 	 W a i t   S e c o n d s   1 . 3 
 
 	 	 S l o t ( S l o t _ M 1 )   =   9 0 
 
 	 	 S l o t ( S l o t _ M 2 )   =   7 6 
 
 	 	 S l o t ( S l o t _ M 3 )   =   8 2 
 
 	 	 W a i t A l l M o t o r s 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   S a y Y e l l o w 
 
 	 T T S   S p e a k   " G o i n g   Y e l l o w   t a r g e t . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y G r e e n 
 
 	 T T S   S p e a k   " G o i n g   G r e e n   t a r g e t ,   t i m e   i n t e r p o l a t e   1   s e c o n d . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y B l u e 
 
 	 T T S   S p e a k   " R o b o t A N N O   G o i n g   B l u e   t a r g e t . " 
 
 	 W a i t   T T S r e a d y 
 
 	 C l e a r C o m m a n d 
 
 R e t u r n 
 
 
 
 L a b e l   S a y R e d 
 
 	 T T S   S p e a k   " G o i n g   R e d   t a r g e t ,   t i m e   i n t e r p o l a t e   2   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y W h i t e 
 
 	 T T S   S p e a k   " G o i n g   W h i t e   t a r g e t ,   t i m e   i n t e r p o l a t e   2 . 5   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y B l a c k 
 
 	 T T S   S p e a k   " G o i n g   B l a c k   t a r g e t ,   t i m e   i n t e r p o l a t e   3   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y F a s t R n d M o v e 
 
 	 T T S   S p e a k   " M a k i n g   r a n d o m   m o v e m e n t   a t   h i g h   s p e e d . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S T E P P E R - M O T O R S   M O V E   S L O W 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 V a r i a b l e   N u m e r i c   M S V 1 
 
 V a r i a b l e   N u m e r i c   M S V 2 
 
 V a r i a b l e   N u m e r i c   M S V 3 
 
 V a r i a b l e   N u m e r i c   M S V 4 
 
 V a r i a b l e   N u m e r i c   M S V 5 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     M O V E   S L O W 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 V a r i a b l e   N u m e r i c   M o v e S l o w _ D e s t M 1   	 '   d e s t i n a t i o n   i n   m m 
 
 V a r i a b l e   N u m e r i c   M o v e S l o w _ D e s t M 2   	 '   d e s t i n a t i o n   i n   m m 
 
 V a r i a b l e   N u m e r i c   M o v e S l o w _ D e s t M 3   	 '   d e s t i n a t i o n   i n   m m 
 
 V a r i a b l e   N u m e r i c   M o v e S l o w _ S p e e d   	 '   s p e e d   i n   m m / s e c 
 
 
 
 L a b e l   M o v e S l o w M 1 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   o u t   o f   l i m i t 
 
 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t ( S l o t _ M 1 ) ,   M 1 m i n ,   M 1 m a x ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   v e r y   l o w   s p e e d 
 
 	 I f   M o v e S l o w _ S p e e d   <   0 . 1 
 
 	 	 M o v e S l o w _ S p e e d   =   1 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   m o v e m e n t   i n   m m 
 
 	 M S V 1   =   M o v e S l o w _ D e s t M 1   -   S l o t ( S l o t _ M 1 ) 
 
 	 M S V 1   =   A b s ( M S V 1 ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   l o o p s   c o u n t 
 
 	 M S V 4   =   M S V 1   /   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 M S V 4   =   I n t ( M S V 4   /   M o v e S l o w _ S p e e d ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t o o   m u c h   s p e e d   ? 
 
 	 I f   M S V 4   =   0 
 
 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( M o v e S l o w _ D e s t M 1 ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 R e t u r n 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   p r e p a r e   t h e   i n c r e m e n t 
 
 	 M S V 1   =   ( M o v e S l o w _ D e s t M 1   -   S l o t ( S l o t _ M 1 ) )   /   M S V 4 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   l o o p   f o r   v 4   t i m e s 
 
 	 F o r   M S V 3   =   1   T o   M S V 4 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   i n c r e m e n t ,   m o v e   a n d   w a i t 
 
 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t ( S l o t _ M 1 )   +   M S V 1 ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 W a i t   S e c o n d s   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 N e x t 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e S l o w M 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   o u t   o f   l i m i t 
 
 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t ( S l o t _ M 2 ) ,   M 2 m i n ,   M 2 m a x ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   v e r y   l o w   s p e e d 
 
 	 I f   M o v e S l o w _ S p e e d   <   0 . 1 
 
 	 	 M o v e S l o w _ S p e e d   =   1 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   m o v e m e n t   i n   m m 
 
 	 M S V 1   =   M o v e S l o w _ D e s t M 2   -   S l o t ( S l o t _ M 2 ) 
 
 	 M S V 1   =   A b s ( M S V 1 ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   l o o p s   c o u n t 
 
 	 M S V 4   =   M S V 1   /   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 M S V 4   =   I n t ( M S V 4   /   M o v e S l o w _ S p e e d ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t o o   m u c h   s p e e d   ? 
 
 	 I f   M S V 4   =   0 
 
 	 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( M o v e S l o w _ D e s t M 2 ,   M 2 m i n ,   M 2 m a x ) 
 
 	 	 R e t u r n 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   p r e p a r e   t h e   i n c r e m e n t 
 
 	 M S V 1   =   ( M o v e S l o w _ D e s t M 2   -   S l o t ( S l o t _ M 2 ) )   /   M S V 4 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   l o o p   f o r   v 4   t i m e s 
 
 	 F o r   M S V 3   =   1   T o   M S V 4 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   i n c r e m e n t ,   m o v e   a n d   w a i t 
 
 	 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t ( S l o t _ M 2 )   +   M S V 1 ,   M 2 m i n ,   M 2 m a x ) 
 
 	 	 W a i t   S e c o n d s   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 N e x t 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e S l o w M 3 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   o u t   o f   l i m i t 
 
 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( S l o t ( S l o t _ M 3 ) ,   M 3 m i n ,   M 3 m a x ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   v e r y   l o w   s p e e d 
 
 	 I f   M o v e S l o w _ S p e e d   <   0 . 1 
 
 	 	 M o v e S l o w _ S p e e d   =   1 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   m o v e m e n t   i n   m m 
 
 	 M S V 1   =   M o v e S l o w _ D e s t M 3   -   S l o t ( S l o t _ M 3 ) 
 
 	 M S V 1   =   A b s ( M S V 1 ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   l o o p s   c o u n t 
 
 	 M S V 4   =   M S V 1   /   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 M S V 4   =   I n t ( M S V 4   /   M o v e S l o w _ S p e e d ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t o o   m u c h   s p e e d   ? 
 
 	 I f   M S V 4   =   0 
 
 	 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( M o v e S l o w _ D e s t M 3 ,   M 3 m i n ,   M 3 m a x ) 
 
 	 	 R e t u r n 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   p r e p a r e   t h e   i n c r e m e n t 
 
 	 M S V 1   =   ( M o v e S l o w _ D e s t M 3   -   S l o t ( S l o t _ M 3 ) )   /   M S V 4 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   l o o p   f o r   v 4   t i m e s 
 
 	 F o r   M S V 3   =   1   T o   M S V 4 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   i n c r e m e n t ,   m o v e   a n d   w a i t 
 
 	 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( S l o t ( S l o t _ M 3 )   +   M S V 1 ,   M 3 m i n ,   M 3 m a x ) 
 
 	 	 W a i t   S e c o n d s   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 N e x t 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e S l o w M 1 M 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   o u t   o f   l i m i t 
 
 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t ( S l o t _ M 1 ) ,   M 1 m i n ,   M 1 m a x ) 
 
 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t ( S l o t _ M 2 ) ,   M 2 m i n ,   M 2 m a x ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   v e r y   l o w   s p e e d 
 
 	 I f   M o v e S l o w _ S p e e d   <   0 . 1 
 
 	 	 M o v e S l o w _ S p e e d   =   1 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   m o v e m e n t   i n   m m 
 
 	 M S V 1   =   M o v e S l o w _ D e s t M 1   -   S l o t ( S l o t _ M 1 ) 
 
 	 M S V 2   =   M o v e S l o w _ D e s t M 2   -   S l o t ( S l o t _ M 2 ) 
 
 	 M S V 3   =   M S V 1   *   M S V 1 
 
 	 M S V 3   =   M S V 3   +   M S V 2   *   M S V 2 
 
 	 M S V 3   =   S q r t ( M S V 3 ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   l o o p s   c o u n t 
 
 	 M S V 4   =   M S V 3   /   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 M S V 4   =   I n t ( M S V 4   /   M o v e S l o w _ S p e e d ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t o o   m u c h   s p e e d   ? 
 
 	 I f   M S V 4   =   0 
 
 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( M o v e S l o w _ D e s t M 1 ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( M o v e S l o w _ D e s t M 2 ,   M 2 m i n ,   M 2 m a x ) 
 
 	 	 R e t u r n 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   p r e p a r e   t h e   i n c r e m e n t s 
 
 	 M S V 1   =   ( M o v e S l o w _ D e s t M 1   -   S l o t ( S l o t _ M 1 ) )   /   M S V 4 
 
 	 M S V 2   =   ( M o v e S l o w _ D e s t M 2   -   S l o t ( S l o t _ M 2 ) )   /   M S V 4 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   l o o p   f o r   v 4   t i m e s 
 
 	 F o r   M S V 3   =   1   T o   M S V 4 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   i n c r e m e n t ,   m o v e   a n d   w a i t 
 
 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t ( S l o t _ M 1 )   +   M S V 1 ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t ( S l o t _ M 2 )   +   M S V 2 ,   M 2 m i n ,   M 2 m a x ) 
 
 	 	 W a i t   S e c o n d s   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 N e x t 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e S l o w M 1 M 2 M 3 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   o u t   o f   l i m i t 
 
 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t ( S l o t _ M 1 ) ,   M 1 m i n ,   M 1 m a x ) 
 
 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t ( S l o t _ M 2 ) ,   M 2 m i n ,   M 2 m a x ) 
 
 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( S l o t ( S l o t _ M 3 ) ,   M 3 m i n ,   M 3 m a x ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t e s t   f o r   v e r y   l o w   s p e e d 
 
 	 I f   M o v e S l o w _ S p e e d   <   0 . 1 
 
 	 	 M o v e S l o w _ S p e e d   =   1 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   m o v e m e n t   i n   m m 
 
 	 M S V 1   =   M o v e S l o w _ D e s t M 1   -   S l o t ( S l o t _ M 1 ) 
 
 	 M S V 2   =   M o v e S l o w _ D e s t M 2   -   S l o t ( S l o t _ M 2 ) 
 
 	 M S V 3   =   M o v e S l o w _ D e s t M 3   -   S l o t ( S l o t _ M 3 ) 
 
 	 M S V 3   =   M S V 1   *   M S V 1   +   M S V 2   *   M S V 2   +   M S V 3   *   M S V 3 
 
 	 M S V 3   =   S q r t ( M S V 3 ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   c a l c   t h e   l o o p s   c o u n t 
 
 	 M S V 4   =   M S V 3   /   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 M S V 4   =   I n t ( M S V 4   /   M o v e S l o w _ S p e e d ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   t o o   m u c h   s p e e d   ? 
 
 	 I f   M S V 4   =   0 
 
 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( M o v e S l o w _ D e s t M 1 ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( M o v e S l o w _ D e s t M 2 ,   M 2 m i n ,   M 2 m a x ) 
 
 	 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( M o v e S l o w _ D e s t M 3 ,   M 3 m i n ,   M 3 m a x ) 
 
 	 	 R e t u r n 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   p r e p a r e   t h e   i n c r e m e n t s 
 
 	 M S V 1   =   ( M o v e S l o w _ D e s t M 1   -   S l o t ( S l o t _ M 1 ) )   /   M S V 4 
 
 	 M S V 2   =   ( M o v e S l o w _ D e s t M 2   -   S l o t ( S l o t _ M 2 ) )   /   M S V 4 
 
 	 M S V 3   =   ( M o v e S l o w _ D e s t M 3   -   S l o t ( S l o t _ M 3 ) )   /   M S V 4 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   l o o p   f o r   v 4   t i m e s 
 
 	 F o r   M S V 5   =   1   T o   M S V 4 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   i n c r e m e n t ,   m o v e   a n d   w a i t 
 
 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t ( S l o t _ M 1 )   +   M S V 1 ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t ( S l o t _ M 2 )   +   M S V 2 ,   M 2 m i n ,   M 2 m a x ) 
 
 	 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( S l o t ( S l o t _ M 3 )   +   M S V 3 ,   M 3 m i n ,   M 3 m a x ) 
 
 	 	 W a i t   S e c o n d s   0 . 0 1   ' < < <   l o o p   t i m e 
 
 	 N e x t 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '       C O N F I G U R A T I O N   F I L E 
 
 ' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   E d i t C o n f i g V a r s 
 
 	 V a r i a b l e   S t r i n g   V a r s F i l e P a t h A n d N a m e 
 
 	 V a r i a b l e   S t r i n g   E d i t o r F o l d e r 
 
 	 V a r i a b l e   S t r i n g   E d i t o r A p p 
 
         ' 
 
 	 E d i t o r F o l d e r   =   " . \ T h e r e m i n o _ H A L \ T h e r e m i n o _ N o t e p a d \ " 
 
 	 ' 
 
 	 E d i t o r A p p   =   E d i t o r F o l d e r   +   " T h e r e m i n o _ N o t e p a d . e x e " 
 
 	 ' 
 
 	 V a r s F i l e P a t h A n d N a m e   =   E d i t o r F o l d e r   +   " C o n f i g V a r s . t x t " 
 
 	 ' 
 
 	 L o a d   E d i t o r A p p   +   "   "   +   V a r s F i l e P a t h A n d N a m e 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%    %    %  %%%%  %      %
 
 '   Q%  J O G   W I T H   K E Y B O A R D                                                 Q%      %    %    %  %  %%    %%%    %%%      %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%    %%%%  %%%%    %  %%  %%%%      %
 
 L a b e l   E x e c K e y s 
 
 	 V a r i a b l e   N u m e r i c   J o g S p e e d   =   1 
 
 	 S e l e c t   T r u e 
 
 	 	 C a s e   K e y ( " S H I F T " ) 
 
 	 	 	 J o g S p e e d   =   J o g S p e e d   *   0 . 1 
 
 	 	 C a s e   K e y ( " C T R L " ) 
 
 	 	 	 J o g S p e e d   =   J o g S p e e d   *   0 . 0 1 
 
 	 E n d S e l e c t 
 
 	 ' 
 
 	 S e l e c t   M o t o r T o E d i t 
 
 	 	 C a s e   1 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t ( S l o t _ M 1 )   -   J o g S p e e d ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t ( S l o t _ M 1 )   +   J o g S p e e d ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   2 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t ( S l o t _ M 2 )   +   J o g S p e e d ,   M 2 m i n ,   M 2 m a x )   ' B r e a k p o i n t 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t ( S l o t _ M 2 )   -   J o g S p e e d ,   M 2 m i n ,   M 2 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   3 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( S l o t ( S l o t _ M 3 )   +   J o g S p e e d ,   M 3 m i n ,   M 3 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( S l o t ( S l o t _ M 3 )   -   J o g S p e e d ,   M 3 m i n ,   M 3 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   4 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 4 )   =   L i m i t ( S l o t ( S l o t _ M 4 )   -   J o g S p e e d ,   M 4 m i n ,   M 4 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 4 )   =   L i m i t ( S l o t ( S l o t _ M 4 )   +   J o g S p e e d ,   M 4 m i n ,   M 4 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   5 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 5 )   =   L i m i t ( S l o t ( S l o t _ M 5 )   +   J o g S p e e d ,   M 5 m i n ,   M 5 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 5 )   =   L i m i t ( S l o t ( S l o t _ M 5 )   -   J o g S p e e d ,   M 5 m i n ,   M 5 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   6 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 6 )   =   L i m i t ( S l o t ( S l o t _ M 6 )   +   J o g S p e e d ,   M 6 m i n ,   M 6 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 6 )   =   L i m i t ( S l o t ( S l o t _ M 6 )   -   J o g S p e e d ,   M 6 m i n ,   M 6 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   7 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 7 )   =   L i m i t ( S l o t ( S l o t _ M 7 )   -   J o g S p e e d ,   M 7 m i n ,   M 7 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M 7 )   =   L i m i t ( S l o t ( S l o t _ M 7 )   +   J o g S p e e d ,   M 7 m i n ,   M 7 m a x ) 
 
 	 	 	 E n d I f 
 
 	 E n d S e l e c t 
 
 	 ' 
 
 	 P r i n t V a l u e s 
 
 	 ' E n a b l e M o t o r s 
 
 	 ' Y e l l o w O n 
 
 	 U p d a t e B u t t o n s 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%      %%  %%  %%%%  %%%%%
 
 '   Q%    M O T O R   S E L E C T I O N   F O R   J O G                                   Q%      %    %    %  %  %%      %  %  %  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%    %%%%  %%%%      %      %  %%%%      %
 
 V a r i a b l e   N u m e r i c   M o t o r T o E d i t 
 
 L a b e l   d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 1   C o l o r   L i g h t B l u e 
 
 	 B u t t o n   B t n C o o r d _ M 2   C o l o r   L i g h t B l u e 
 
 	 B u t t o n   B t n C o o r d _ M 3   C o l o r   L i g h t B l u e 
 
 	 B u t t o n   B t n C o o r d _ M 4   C o l o r   L i g h t B l u e 
 
 	 B u t t o n   B t n C o o r d _ M 5   C o l o r   L i g h t B l u e 
 
 	 B u t t o n   B t n C o o r d _ M 6   C o l o r   L i g h t B l u e 
 
 	 B u t t o n   B t n C o o r d _ M 7   C o l o r   L i g h t B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 1 
 
 	 M o t o r T o E d i t   =   1 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 1   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 2 
 
 	 M o t o r T o E d i t   =   2 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 2   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 3 
 
 	 M o t o r T o E d i t   =   3 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 3   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 4 
 
 	 M o t o r T o E d i t   =   4 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 4   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 5 
 
 	 M o t o r T o E d i t   =   5 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 5   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 6 
 
 	 M o t o r T o E d i t   =   6 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 6   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 7 
 
 	 M o t o r T o E d i t   =   7 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 7   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     P R I N T   C O O R D I N A T E S   A N D   U P D A T E   C O O R D I N A T E   B U T T O N S 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   P r i n t V a l u e s 
 
 	 s 1   =   " M o v e T o   "   +   F o r m a t ( S l o t ( S l o t _ M 1 ) ,   " 0 . 0 0 " ) 
 
 	 s 1   =   s 1   +   "   "   +   F o r m a t ( S l o t ( S l o t _ M 2 ) ,   " 0 . 0 0 " ) 
 
 	 s 1   =   s 1   +   "   "   +   F o r m a t ( S l o t ( S l o t _ M 3 ) ,   " 0 . 0 0 " ) 
 
 	 s 1   =   s 1   +   "   "   +   F o r m a t ( S l o t ( S l o t _ M 4 ) ,   " 0 . 0 0 " ) 
 
 	 s 1   =   s 1   +   "   "   +   F o r m a t ( S l o t ( S l o t _ M 5 ) ,   " 0 . 0 0 " ) 
 
 	 s 1   =   s 1   +   "   "   +   F o r m a t ( S l o t ( S l o t _ M 6 ) ,   " 0 . 0 0 " ) 
 
 	 s 1   =   s 1   +   "   "   +   F o r m a t ( S l o t ( S l o t _ M 7 ) ,   " 0 . 0 0 " ) 
 
 	 P r i n t   C R L F   +   s 1 
 
 R e t u r n 
 
 
 
 L a b e l   U p d a t e B u t t o n s 
 
 	 B u t t o n   B t n C o o r d _ M 1   T e x t   " M 1 = "   +   F o r m a t ( S l o t ( S l o t _ M 1 )   -   S l o t ( S l o t _ M 1   +   1 ) ,   " 0 . 0 0 " ) 
 
 	 B u t t o n   B t n C o o r d _ M 2   T e x t   " M 2 = "   +   F o r m a t ( S l o t ( S l o t _ M 2 )   -   S l o t ( S l o t _ M 2   +   1 ) ,   " 0 . 0 0 " ) 
 
 	 B u t t o n   B t n C o o r d _ M 3   T e x t   " M 3 = "   +   F o r m a t ( S l o t ( S l o t _ M 3 )   -   S l o t ( S l o t _ M 3   +   1 ) ,   " 0 . 0 0 " ) 
 
 	 B u t t o n   B t n C o o r d _ M 4   T e x t   " M 4 = "   +   F o r m a t ( S l o t ( S l o t _ M 4 )   -   S l o t ( S l o t _ M 4   +   1 ) ,   " 0 . 0 0 " ) 
 
 	 B u t t o n   B t n C o o r d _ M 5   T e x t   " M 5 = "   +   F o r m a t ( S l o t ( S l o t _ M 5 )   -   S l o t ( S l o t _ M 5   +   1 ) ,   " 0 . 0 0 " ) 
 
 	 B u t t o n   B t n C o o r d _ M 6   T e x t   " M 6 = "   +   F o r m a t ( S l o t ( S l o t _ M 6 )   -   S l o t ( S l o t _ M 6   +   1 ) ,   " 0 . 0 0 " ) 
 
 	 B u t t o n   B t n C o o r d _ M 7   T e x t   " M 7 = "   +   F o r m a t ( S l o t ( S l o t _ M 7 )   -   S l o t ( S l o t _ M 7   +   1 ) ,   " 0 . 0 0 " ) 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%  %%  %%    %%%%  %%  %%  %%%%  %%%%
 
 '   Q%  C O M M A N D S   F R O M   C O B O T                                             Q%  %        %    %  %  %  %  %  %  %    %%%        %      %%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %      %  %      %    %%%%  %%  %%  %%%%  %%%%
 
 L a b e l   E v e n t _ C o m m a n d s F r o m C o b o t 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   D o   n o t   p r i n t   l i n e s   c o n t a i n i n g   ' ' 
 
 	 P r i n t   "   E x e c :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 S e l e c t   C o m m a n d T e x t 
 
 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   A C T I O N S 
 
 	 	 C a s e   " H a r d H o m e " 
 
 	 	 	 H a r d H o m e 
 
 	 	 C a s e   " W a i t A l l M o t o r s " 
 
 	 	 	 W a i t A l l M o t o r s 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   M o t o r   m o v e m e n t D   C O L O 
 
 	 	 C a s e   " R e d " 
 
 	 	 	 R E D 
 
 	 	 C a s e   " G r e e n " 
 
 	 	 	 G R E E N 
 
 	 	 C a s e   " B l u e " 
 
 	 	 	 B L U E 
 
 	 	 C a s e   " Y e l l o w " 
 
 	 	 	 Y E L L O W 
 
 	 	 C a s e   " B L A C K " 
 
 	 	 	 B L A C K 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S p e a k i n g 
 
 	 	 C a s e   " S a y Y e l l o w " 
 
 	 	 	 S a y Y e l l o w 
 
 	 	 C a s e   " S a y G r e e n " 
 
 	 	 	 S a y G r e e n 
 
 	 	 C a s e   " S a y B l u e " 
 
 	 	 	 S a y B l u e 
 
 	 	 C a s e   " S a y R e d " 
 
 	 	 	 S a y R e d 
 
 	 	 C a s e   " S a y W h i t e " 
 
 	 	 	 S a y W h i t e 
 
 	 	 C a s e   " S a y B l a c k " 
 
 	 	 	 S a y B l a c k 
 
 	 	 C a s e   " S a y F a s t R n d M o v e " 
 
 	 	 	 S a y F a s t R n d M o v e 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L E D   C O L O R S 
 
 	 	 C a s e   " R e d O n " 
 
 	 	 	 R e d O n 
 
 	 	 C a s e   " G r e e n O N " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " M a g e n t a O n " 
 
 	 	 	 M a g e n t a O n 
 
 	 	 C a s e   " G r e e n O N " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " B l u e O n " 
 
 	 	 	 B l u e O n 
 
 	 	 C a s e   " Y e l l o w O n " 
 
 	 	 	 Y e l l o w O n 
 
 	 	 C a s e   " W h i t e O n " 
 
 	 	 	 W h i t e O n 
 
 	 	 C a s e   " R G B O F F " 
 
 	 	 	 R g b O f f 
 
 	 	 C a s e   " P a u s e " 
 
 	 	 	 W a i t   S e c o n d s   G e t S e p a r a t e d S t r i n g ( C o m m a n d T e x t ,   1 ) 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 S t o p 	 	 	 	 	 	 	 	 ' 
 
 	 E n d S e l e c t 
 
 	 C l e a r C o m m a n d 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ C o m m a n d s F r o m C o b o t )   =   " " 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     C O M M A N D S   T O   C o b o t 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 V a r i a b l e   S t r i n g   C o m m a n d 
 
 L a b e l   S e n d C o m m a n d 
 
 	 S l o t T e x t   S l o t _ C o m m a n d s T o C o b o t   =   " " 
 
 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 S l o t T e x t   S l o t _ C o m m a n d s T o C o b o t   =   C o m m a n d 
 
 	 W a i t   S e c o n d s   0 . 0 5 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c C o b o t 
 
 	 V a r i a b l e   N u m e r i c   E C 1 
 
 	 F o r   E C 1   =   1   T o   I n f i n i t y 
 
 	 	 C o m m a n d   =   " D i s a b l e R e p e a t " 
 
 	 	 S e n d C o m m a n d 
 
 	 	 C o m m a n d   =   " S e l e c t L i n e   1 " 
 
 	 	 S e n d C o m m a n d 
 
 	 	 C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 	 S e n d C o m m a n d 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p C o b o t 
 
 	 C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d 
 
 R e t u r n 
 
 
 
 
 
 L a b e l   W a i t C o b o t R e a d y 
 
 	 V a r i a b l e   N u m e r i c   W C R 1 
 
 	 F o r   W C R 1   =   1   T o   I n f i n i t y 
 
 	 	 U p d a t e B u t t o n s 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 I f   S l o t T e x t ( S l o t _ R e s p o n s e s F r o m C o b o t )   =   " R e a d y " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' I n d e x     N a m e                                                     C u l t u r e     G e n d e r       A g e 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' 1             M i c r o s o f t   D a v i d   D e s k t o p               e n - U S         M a l e           A d u l t 
 
 ' 2             M i c r o s o f t   Z i r a   D e s k t o p                 e n - U S         F e m a l e       A d u l t 
 
 ' 3             M i c r o s o f t   E l s a   D e s k t o p                 i t - I T         F e m a l e       A d u l t 
 
 ' 4             M i c r o s o f t   H u i h u i   D e s k t o p             z h - C N         F e m a l e       A d u l t 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 
 
 